import request from '@/utils/request'

// 查询guidance列表
export function listGuidance(query) {
  return request({
    url: '/teacher/guidance/list',
    method: 'get',
    params: query
  })
}

// 查询guidance详细
export function getGuidance(guidanceId) {
  return request({
    url: '/teacher/guidance/' + guidanceId,
    method: 'get'
  })
}

// 新增guidance
export function addGuidance(data) {
  return request({
    url: '/teacher/guidance/add',
    method: 'post',
    data: data
  })
}

// 修改guidance
export function updateGuidance(data) {
  return request({
    url: '/teacher/guidance/update',
    method: 'post',
    data: data
  })
}

// 删除guidance
export function delGuidance(guidanceId) {
  return request({
    url: '/teacher/guidance/' + guidanceId,
    method: 'post'
  })
}
